

# Name of the Project.
PROJECT(ThermalDefense CXX)



OPTION(TEST_BUILD "Turn on to build text binaries" OFF)

# Create a new build type
# For profiling with gprof.
SET(CMAKE_CXX_FLAGS_PROFILE "-pg -O0")
# For coverage profiling with gcov
SET(CMAKE_CXX_FLAGS_COVERAGE "-ftest-coverage -fprofile-arcs -O0")

# Set the build type options are
# -None ()
# -Debug (-g)
# -Release
# -RelWithDebInfo (-O2 -g)
# -MinSizeRel
# Or any custom type.
# This can be overwritten with -D when using cmake.
if(NOT CMAKE_BUILD_TYPE)
    SET(CMAKE_BUILD_TYPE release)
endif(NOT CMAKE_BUILD_TYPE)

# See more output from the build.
IF(NOT CMAKE_VERBOSE_MAKEFILE)
    SET(CMAKE_VERBOSE_MAKEFILE OFF)
ENDIF(NOT CMAKE_VERBOSE_MAKEFILE)

# Used to make libraries shared.
SET(BUILD_SHARED_LIBS ON)

# Put the executables in the bin folder
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

add_subdirectory(thermal)
add_subdirectory(display)




